
#ifndef A2D_OPTIONS_H
#define A2D_OPTIONS_H

// Use external Vref
// 1 = external
// 0 = Vcc
#define 	USE_EXTERNAL_VREF		1


// Reference voltages
// define voltages for Vcc or external reference
#define 	A2D_EXTERNAL_FULLSCALE	3.3
#define 	A2D_VCC_FULLSCALE		5.0


#if(USE_EXTERNAL_VREF == 1)
	#define A2D_FULLSCALE			A2D_EXTERNAL_FULLSCALE
#else
	#define A2D_FULLSCALE			A2D_VCC_FULLSCALE
#endif

// Register a callback for completion on a given channel
void registerA2Dcallback(void (*callbackFunc) (void) , unsigned char A2Dchannel);

int getA2Dreading(unsigned char channel);

int zeroA2Dchannel(unsigned int channel);

#endif
